﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="user.caifu520.com._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户中心 - 财富520</title>
    <script src="Scripts/Page.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        Page.Initialization = function () {
            Page.attachEventListener(Page.tool.Dom.$("btnlogin"), Page.eventType.click, function () {
                makeAction("0");
            });
            Page.attachEventListener(Page.tool.Dom.$("btnregister"), Page.eventType.click, function () {
                makeAction("1");
            });
        };

        //标记动作
        function makeAction() {
            Page.tool.Dom.$("hidaciton").value = arguments[0];
        }

        //改变登录图片
        function ChangeImg(imgId, controlPan) {
            var img = Page.tool.Dom.$(imgId);
            img.src = "PassCode.ashx?r=" + Math.random();
            if (controlPan) {
                controlPan.pan.style.display = controlPan.display;
            }
        }

        //验证基类
        function Verification() {
         

            //验证实体
            this.entity = function () {
                this.value = '';
                this.isValid = true;

                this.monitor = function (box) {
                    if (box) {
                        if (typeof box == 'object') {
                            this.box = box;
                        }
                        if (typeof box == 'string') {
                            this.box = Page.tool.Dom.$(box);
                        }
                    }

                    this.message = '';
                    this.Show = function (print) {
                        if (print) {
                            print(this.message);
                        }
                        else {
                            this.box.innerHTML = this.message;
                        }
                    };
                };

            };
        }

        function UCenter() {
            this.login = function () { };
            this.register = function () { };

        }

    </script>
</head>
<body>
    <form id="UserCenter" runat="server">
    <div style="width: 790px; margin: 0px auto;">
        <div style="width: 395px; float: left;">
            <h3>
                用户登录</h3>
            <label for="luname">
                邮箱：</label>
            <input type="text" title="注册的邮箱" id="luname" name="luname" maxlength="50" />
            <span>邮箱验证</span><br />
            <br />
            <label for="lupwd">
                密码：</label>
            <input type="text" id="lupwd" title="注册时填写的密码" name="lupwd" maxlength="50" /><br />
            <div id="logImg"  style="display: none;">
                <label for="txtLgCode">
                    验证：</label>
                <input type="text" size="10" id="txtLgCode" title="右侧图片上的内容" name="txtLgCode" maxlength="4" />
                <img id="imglogin" src="#" alt="验证码" />
                <a style="font-size: 12px;" href="javascript:ChangeImg('imglogin');">看不清楚，换一张</a>
            </div>
            <br />
            <input type="submit" id="btnlogin" name="btnlogin" value="登录" />
        </div>
        <div style="width: 395px; float: left;">
            <h3>
                注册财富号</h3>
            <label for="uname">
                邮箱：</label>
            <input type="text" title="输入您常用的邮箱地址" id="uname" name="uname" maxlength="50" /><br />
            <br />
            <label for="upwd">
                密码：</label>
            <input type="text" id="upwd" title="尽量使用字母和数字的结合" name="upwd" maxlength="16" /><br />
            <br />
            <label for="reupwd">
                重复：</label>
            <input type="text" id="reupwd" title="请再次输入您的密码" name="reupwd" maxlength="16" /><br />
            <div id="rgstImg" style="display: none;">
                <label for="txtRgCode">
                    验证：</label>
                <input type="text" size="10" id="txtRgCode" title="右侧图片上的内容" name="txtRgCode" maxlength="4" />
                <img id="imgregister" src="#" alt="验证码" />
                <a style="font-size: 12px;" href="javascript:ChangeImg('imgregister');">看不清楚，换一张
                </a>
            </div>
            <br />
            <input type="submit" id="btnregister" name="btnregister" value="注册" />
        </div>
        <div style="width: 100%;">
            财富520——财富我爱你
        </div>
    </div>
    <input type="hidden" id="hidaciton" name="hidaciton" value="0" />
    </form>
</body>
</html>
